package com.nhjf.model.oneOnOneLive;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.nhjf.model.BaseModel;
import com.nhjf.model.student.Student;
import com.nhjf.model.system.User;
import com.nhjf.model.teachers.Teacher;
@SuppressWarnings("serial")
@Entity
@Table(name = "oneOnOneLive")
public class OneOnOneLive extends BaseModel{
	/**
	 * 主键ID
	 */
	@Id
	@GeneratedValue(generator = "generator")
	@GenericGenerator(name = "generator", strategy = "native")
	@Column(name = "id", unique = true)
	private Long id;
	/**
	 * 创建人
	 */
	@OneToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "studentId")
	private Student student;
	/**
	 * 创建人
	 */
	@OneToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "teacherId")
	private Teacher teacher;
	/**
	 * 时间段
	 */
	@Column(name = "period")
	private Integer period;
	/**
	 * 直播时间
	 */
	@Column(name = "liveTime")
	private Date liveTime;
	/**
	 * 1预约 2确定 3取消
	 */
	@Column(name = "confirmationStatus")
	private Integer confirmationStatus;
	/**
	 * 学生描述
	 */
	@Column(name = "studentDescription")
	private String studentDescription;
	/**
	 * 创建时间
	 */
	@Column(name = "creaTime")
	private Date creaTime;
	/**
	 * 开始时间
	 */
	@Column(name = "startingTime")
	private Date startingTime;
	/**
	 * 结束时间
	 */
	@Column(name = "endTime")
	private Date endTime;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Student getStudent() {
		return student;
	}
	public void setStudent(Student student) {
		this.student = student;
	}
	public Teacher getTeacher() {
		return teacher;
	}
	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}
	public Integer getPeriod() {
		return period;
	}
	public void setPeriod(Integer period) {
		this.period = period;
	}
	public Date getLiveTime() {
		return liveTime;
	}
	public void setLiveTime(Date liveTime) {
		this.liveTime = liveTime;
	}
	public Integer getConfirmationStatus() {
		return confirmationStatus;
	}
	public void setConfirmationStatus(Integer confirmationStatus) {
		this.confirmationStatus = confirmationStatus;
	}
	public String getStudentDescription() {
		return studentDescription;
	}
	public void setStudentDescription(String studentDescription) {
		this.studentDescription = studentDescription;
	}
	public Date getCreaTime() {
		return creaTime;
	}
	public void setCreaTime(Date creaTime) {
		this.creaTime = creaTime;
	}
	public Date getStartingTime() {
		return startingTime;
	}
	public void setStartingTime(Date startingTime) {
		this.startingTime = startingTime;
	}
	public Date getEndTime() {
		return endTime;
	}
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	
}
